package base.多线程.同步代码.消费者和生产者;

public class Text_2 {
    public static void main(String[] args) {
        Consumer foodie = new Consumer();
        Producer cook = new Producer();
        foodie.setName("【客人】：");
        cook.setName("老板：");
        foodie.start();
        cook.start();
    }
}
